<?php 
namespace app\common\urils;

class Ch
{
    // 静态方法
    public static function generateUniqueId($prefix = '')
    {
        $timePart = intval(microtime(true) * 1000);
        $randPart = mt_rand(1000, 9999);
        return $prefix . $timePart . $randPart;
    }
}